package com.ihrm.company;


import com.ihrm.common.utils.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Bean;

/**
 * @author 13932105637
 * @version l.0
 * @date 2021/7/6 21:58
 * 1.配置springboot的包扫描
 * SpringBootApplication(scanBasePackages = "com.ihrm.company")
 * 2.配置jpa注解的扫描
 * EntityScan(value = "com.ihrm.domain.company")
 **/
@SpringBootApplication(scanBasePackages = "com.ihrm.company")
@EntityScan(value = "com.ihrm.domain.company")
public class CompanyApplication {

    /**
     * 启动方法
     **/
    public static void main(String[] args) {
        SpringApplication.run(CompanyApplication.class, args);
    }

    @Bean
    public IdWorker idWorker() {
        return new IdWorker();
    }
}
